package com.zczc.service;

import com.github.pagehelper.PageInfo;
import com.zczc.entity.MessageGetter;
import java.util.List;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 9:29 2018-12-13
 * @Modify by:
 */
public interface MessageGetterService {

  /**
   * 向用户的消息获取表中批量添加推送消息
   * @param messageGetter
   * @return
   */
  Boolean addMessageGetterSelective(MessageGetter messageGetter) throws Exception;

  /**
   * 查询每位用户收到的站内信通知，分页展示
   * @param messageGetter
   * @param pageNum
   * @param pageSize
   * @return
   */
  PageInfo<MessageGetter> selectMessageByUserId(MessageGetter messageGetter,Integer pageNum,Integer pageSize)
      throws Exception;

  /**
   * 根据id值进行批量删除，逻辑删除
   * @param ids
   * @return
   */
  Boolean deleteMessageByIdLogic(List<String> ids,String userId);

  /**
   * 批量阅读站内消息通知
   * @param ids
   * @param userId
   * @return
   */
  Boolean readnMessageById(List<String> ids,String userId);

}
